package com.shuai.jit.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shuai.jit.entity.History;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface HistoryMapper extends BaseMapper<History> {

    @Select("SELECT * FROM history limit 5000")
    List<History> getHistory();

    @Select("SELECT * FROM history where user_id=#{userId} limit 100")
    List<History> getHistoryByUserId(String userId);
}
